<?php


namespace app\shopConsole\service\role;

use app\dao\goods\ShopTagDao;
use app\dao\user\ShopRoleDao;

class ShopRoleQueryService
{
    public function getPageListByShopId($shop_id, $page, $perPage)
    {
        $shopRoleDao = new ShopRoleDao();
        return $shopRoleDao->getPageListByShopId($shop_id, $page, $perPage);
    }

    public function getListByShopId($shop_id)
    {
        $shopRoleDao = new ShopRoleDao();
        return $shopRoleDao->getAllByShopId($shop_id);
    }
}